Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed [p]ban raising an unhandled error if an ID too large is provided #6486

Open
wants to merge 1 commit into
base: V3/develop
Choose a base branch
from

Conversation

cdaman3141
Copy link

Description of the changes

Closes #6431

Added ID validation within RawUserIdConverter, and adjusted Regex matching to fit standard Discord ID format. Also switched usage of regex.match to regex.fullmatch so IDs aren't truncated. Should no longer give error in console when using [p]ban with an ID that is too large.

Have the changes in this PR been tested?

Yes

…ching to fit standard Discord ID format. Also switched usage of regex.match to regex.fullmatch so IDs aren't truncated. Should no longer give error in console when using [p]ban with an ID that is too large
@github-actions github-actions bot added the Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module. label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core - API - Commands Package This is related to the `redbot.core.commands` package or `redbot.core.checks` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command raises an unhandled error if an ID too large is provided
1 participant